scare (someone) out of their wits

Translations
напугать (кого-то) до потери рассудка
The unexpected thunderstorm scared the children out of their wits.
Неожиданная гроза напугала детей до потери рассудка.
Definitions
To frighten someone extremely or to the point of causing them to feel intense fear or panic.